package demo1103.demo02;



/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/3 9:59
 */
public class TestString {
    public static void main(String[] args) {
       Person person = str -> {
            return "人用"+str+"说话";
       };

       commucation(person);
    }
    public static void commucation(Person person){
        String m = person.talk("嘴巴");
        System.out.println(m);
    }
}
interface Person{
    String talk(String str);
}
